package day05;

public class ForDemo {
    public static void main(String[] args){
        //累加和：1+2+3+4+...+99+100=？
        int sum = 0;//sum总和
        for(int i =1;i<=100;i++){//初始值为1
            sum=sum+i;
        }
        System.out.println("sum"+sum);
    }

}
